projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c083f8
)
notebook: No need to recompute remaining space
author
Benjamin Otte
<otte@redhat.com>
Thu, 7 Jan 2016 11:21:25 +0000
(12:21 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Mon, 11 Jan 2016 16:05:24 +0000
(17:05 +0100)
The value is correct.
In particular, subtracting width on notebooks with tabs on left/right is
a very bad idea.
gtk/gtknotebook.c
patch
|
blob
|
history
diff --git
a/gtk/gtknotebook.c
b/gtk/gtknotebook.c
index 89f9a3c375fa4772c60c6aeca95daeef1869c3d2..13592d11cac5f0c8bef9d8bcccca549fc615f2f4 100644
(file)
--- a/
gtk/gtknotebook.c
+++ b/
gtk/gtknotebook.c
@@
-5525,7
+5525,6
@@
gtk_notebook_calculate_shown_tabs (GtkNotebook *notebook,
*last_child = gtk_notebook_search_page (notebook, priv->focus_tab,
STEP_NEXT, TRUE);
page = priv->first_tab->data;
- *remaining_space = tab_space - page->requisition.width;
*n = 1;
}
else